package com.chang.bootplus.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "商品信息更新", description = "")
public class ProductListPO  {

    @ApiModelProperty(value = "商品id",required = true)
    private Long id;

    @ApiModelProperty(value = "商品名")
    private String proname;

    @ApiModelProperty(value = "商品描述")
    private String message;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品卖一件所能得到的利润",example = "10.9",required = true)
    private BigDecimal profit;

    @ApiModelProperty("商品所属于的最低分类id")
    private Long categoryIdFour;

    @ApiModelProperty("商品所属于的三级分类id")
    private Long categoryIdThree;

    @ApiModelProperty("商品所属于的二级分类id")
    private Long categoryIdTwo;

    @ApiModelProperty("商品所属于的一级分类id")
    private Long categoryIdOne;

    @ApiModelProperty(value = "商家id")
    private Long userId;

    @ApiModelProperty(value = "商品状态 0为可卖 1为不可卖 因为商家可以设置不卖，当然也跟库存有关")
    private Integer proStatus;

    @ApiModelProperty(value = "库存量")
    private Integer stock;

    @ApiModelProperty(value = "商品详情(如手机的话显示具体型号，食物的话显示具体口味),录入即 型号：土豪金 , 口味：麻辣",required = true)
    private Map<Long,String> mapDetails;

    @ApiModelProperty(value = "商品图片")
    private List<String> listPictures;
}
